# @time     :2022/1/18
# @Author   :Simple
# @FileName :trade_page
from appium.webdriver.common.mobileby import MobileBy
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait

from common.element import GetElement
from xueqiu_demo.page.base_page import BasePage as base
from xueqiu_demo.page.onsale_page import OnsalePage as onsale


class TradePage(base):
    trade_btn = GetElement(accessibility_id="去开户", describe="去开户", wait=True)

    def goto_onsale(self):
        self.trade_btn.click()
        return onsale(self.driver)


